﻿using DotNetCore.CAP;
using L.M.System.Application.IServices;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace L.M.System.Read.API.Controllers
{
    /// <summary>
    /// 子导航
    /// </summary>
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class Authority_list_inforReadControllersController : ControllerBase
    {
        private readonly ICapPublisher _capPublisher;

        private readonly IAuthority_list_inforServices authority_List_InforServices;
        public Authority_list_inforReadControllersController(IAuthority_list_inforServices authority_List_InforServices, ICapPublisher capPublisher)
        {
            this.authority_List_InforServices = authority_List_InforServices;
            _capPublisher = capPublisher;
        }

        /// <summary>
        /// 递归查询左侧导航信息
        /// </summary>
        /// <param name="mId">编号</param>
        /// <param name="uId">用户编号</param> 
        /// <returns>统一返回格式</returns>
        [HttpGet]
        public async Task<IActionResult> GetShowAuthority_list_infor(string? mId, string? uId)
        {
            var res = await authority_List_InforServices.GetShowAuthority_list_infor(mId, uId);
            return Ok(res);
        }

       
    }
}
